package com.irs.service.impl;

import com.irs.mapper.UserMapper;
import com.irs.pojo.User;
import com.irs.service.UUserice;
import com.irs.service.UUserservices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UuserviceImpi  implements UUserservices{
@Autowired
private UserMapper userMapper;
    @Override
    public int insert(User pojo) {
        return userMapper.insert(pojo);
    }

    @Override
    public List<User> select() {
        return userMapper.select();
    }

    @Override
    public int update(User pojo) {
        return userMapper.update(pojo);
    }

    @Override
    public void delete(int id) {
        userMapper.delete(id);
    }

    @Override
    public List<User> selectkey(String key) {
        return  null;
    }
}
